import 'package:UILab/OrderListItem.dart';
import 'package:flutter/material.dart';

class OrderListPage extends StatelessWidget {
  const OrderListPage({Key key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
          title: Text('订单列表'),
        ),
        body: Center(
          child: ListView.separated(
            itemCount: 100,
            itemBuilder: (BuildContext context, int index) {
              return OrderItemCell();
            },
            padding: EdgeInsets.all(20),
            separatorBuilder: (BuildContext context, int index) {
              return SizedBox(
                height: 10,
              );
            },
          ),
        ));
  }
}
